Skip to content

App Viewer: Add to Tronbyt - #982

Open
saltedlolly wants to merge 2 commits into
tronbyt:app-viewer-sourcefrom
saltedlolly:feature/add-to-tronbyt-viewer
Open

saltedlolly wants to merge 2 commits into
tronbyt:app-viewer-sourcefrom
saltedlolly:feature/add-to-tronbyt-viewer

Conversation

@saltedlolly

@saltedlolly saltedlolly commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Adds Add to Tronbyt to the App Viewer. It works with the server's new install page (tronbyt/server#1036).

Please merge after a server release that includes tronbyt/server#1036. The dialog says "Requires Tronbyt Server v2.x.x or later" in two places; I'll put in the real version then. Older servers can't use the feature: after sign-in they show their home page instead of coming back, and the dialog explains that.

How it works

  • Add Tronbyt Server (top right): enter your server's address and select Continue. The server opens in a new tab; you sign in if asked, and it comes straight back, which confirms that the address really is a Tronbyt server. The address is saved in this browser only.
  • Add to Tronbyt on each app's page, and on the home page cards once a server is saved, opens <server>/apps/<app>/install, the server's own page, where you pick the device. The App Viewer sends nothing else to the server: no app data, no commands, nothing that installs anything.
  • Install links: apps.tronbyt.com/install/<app> goes straight to that app on the visitor's own server, or asks for their server first. App authors can put one in a README, or you can send one to a friend. Copy install link is in the ▾ menu on the Add to Tronbyt button (the share sheet on phones).
  • Addresses are checked before anything opens. A local address without http:// gets http, plus port 8000 if none is given (19191 for umbrel.local, the Umbrel app's port). Public addresses must use https.

Everything stays static: nothing new runs on apps.tronbyt.com.

Files

  • server-url.js (+ tests): checking and tidying the server address, the install link, and the one-time check.
  • main.js: the server dialog, the saved server, the Add to Tronbyt button and menu, and install links.
  • generate-apps-json.js: generates the install/<app> pages.
  • style.css and the three HTML pages: the dialog and buttons.

The deploy workflow on main also needs to copy server-url.js: #983.

Testing

- Add Tronbyt Server: enter your server's address and select Continue. The
  server opens in a new tab, you sign in if asked, and it comes straight back,
  confirming the address is a Tronbyt Server. The address is kept in this
  browser only.
- Add to Tronbyt on each app (on the home page once a server is saved) opens
  the server's install page for that app, <server>/apps/<app>/install, where
  you pick the device. Nothing is sent to the server except that link.
- install/<app> pages: shareable install links that go straight to the app on
  the visitor's own server, or ask for the server first. Copy install link in
  the Add to Tronbyt button's menu (the share sheet on phones).
- Server addresses are checked before opening: local addresses get http and
  port 8000 when none is given (19191 for umbrel.local).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant